//
//  GengDuoXueXIaoCell.m
//  ZhiBoYuan
//
//  Created by 白迪 on 2018/6/26.
//  Copyright © 2018年 apple. All rights reserved.
//

#import "GengDuoXueXIaoCell.h"

@implementation GengDuoXueXIaoCell

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}


-(instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        //添加UI
        [self addUI];
    }
    return self;
}

-(void)addUI{
    self.imageVC = [[UIImageView alloc]initWithFrame:CGRectMake(20 * KscreenWidth, 20 * KscreenHeight, 150 * KscreenWidth, 80 * KscreenHeight)];
    //        self.imageVC.layer. masksToBounds = YES;
    //        self.headImageView.userInteractionEnabled = YES;
    self.imageVC.contentMode = UIViewContentModeScaleAspectFill;
    self.imageVC.clipsToBounds = YES;
    //        self.imageVC.layer.cornerRadius = 22.5 * KscreenWidth;
    [self.imageVC setImage:[UIImage imageNamed:@"0009"]];
    //    self.imageVC.backgroundColor = [UIColor yellowColor];
    [self.contentView addSubview:self.imageVC];
    
    
    self.nameLable = [[UILabel alloc]initWithFrame:CGRectMake(180 * KscreenWidth, 40 * KscreenHeight, ScreenWidth - 250 * KscreenWidth, 40 * KscreenHeight)];
    self.nameLable.text = @"课程名称啊烦DJ安康剧本查克百威额爱呢擦咧发了哦安的结尾哭";
    self.nameLable.numberOfLines = 2;
    self.nameLable.font = [UIFont systemFontOfSize:15 * KscreenWidth];
    [self.contentView addSubview:self.nameLable];

    
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
